package de.gruessing.gwtsports.shared.mappeddata.tcdata;

import java.util.ArrayList;

import com.google.gwt.user.client.rpc.IsSerializable;

public class CourseDTO implements IsSerializable
{
  protected String name;
  protected ArrayList<CourseLapDTO> lap;
  protected ArrayList<TrackDTO> track;
  protected String notes;
  protected ArrayList<CoursePointDTO> coursePoint;
  protected SourceDTO creator;
  protected ExtensionsDTO extensions;
  
  public CourseDTO()
	{
		// TODO Auto-generated constructor stub
	}
  
  public String getName() {
      return name;
  }

  public void setName(String value) {
      this.name = value;
  }

  public ArrayList<CourseLapDTO> getLap() {
      if (lap == null) {
          lap = new ArrayList<CourseLapDTO>();
      }
      return this.lap;
  }

  public ArrayList<TrackDTO> getTrack() {
      if (track == null) {
          track = new ArrayList<TrackDTO>();
      }
      return this.track;
  }

  public String getNotes() {
      return notes;
  }

  public void setNotes(String value) {
      this.notes = value;
  }

  public ArrayList<CoursePointDTO> getCoursePoint() {
      if (coursePoint == null) {
          coursePoint = new ArrayList<CoursePointDTO>();
      }
      return this.coursePoint;
  }

  public SourceDTO getCreator() {
      return creator;
  }

  public void setCreator(SourceDTO value) {
      this.creator = value;
  }

  public ExtensionsDTO getExtensions() {
      return extensions;
  }

  public void setExtensions(ExtensionsDTO value) {
      this.extensions = value;
  }

	public void setLap(ArrayList<CourseLapDTO> lap)
	{
		this.lap = lap;
	}

	public void setTrack(ArrayList<TrackDTO> track)
	{
		this.track = track;
	}

	public void setCoursePoint(ArrayList<CoursePointDTO> coursePoint)
	{
		this.coursePoint = coursePoint;
	}
}
